package com.zlp.spring.aop.service;


import com.zlp.spring.aop.aop.MyAnnotation;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

//@Service("test")
public class TestServiceImpl implements TestSevice, InitializingBean {

    @MyAnnotation
    public void query(String name) {
        System.out.println(String.format("query name %s",name));

    }

    @PostConstruct
    public void init(){
        System.out.println("执行 applyBeanPostProcessorsBeforeInitialization 调用对象");
    }

    public void afterPropertiesSet() throws Exception {

        System.out.println("initializeBean 之后调用对象");
    }
}
